package zm.irc.ioc.pojo;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;

public class WrapField {

    private Annotation iocAnno;

    private Field originField;

    private WrapClass fieldClass;

    private WrapClass parent;

    public WrapField(Field originField,WrapClass parent){
        this.originField = originField;
        this.fieldClass = WrapClass.build(this.originField.getType());
        this.parent = parent;
    }

    
    public Annotation getIocAnno() {
        return iocAnno;
    }


    public void setIocAnno(Annotation iocAnno) {
        this.iocAnno = iocAnno;
    }


    public WrapClass getParent(){
        return this.parent;
    }

    public Field getOriginField(){
        return originField;
    }

    public WrapClass getFieldClass(){
        return fieldClass;
    }

    public String getFieldClassName(){
        return this.getFieldClass().getOriginClass().getName();
    }
}
